-- GENERATED SPELL FOR [Beryl Treasure Hunter] --


function spell0_25353(pUnit, Event) --@Focus Beam,n/a--
pUnit:FullCastSpellOnTarget(50658,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25353', 5000, 1)
end

function Sorts_25353(pUnit, Event)
local choix_sorts_25353 = math.random(0, 0)
if choix_sorts_25353 == 0 then
pUnit:RegisterEvent('spell0_25353', 1, 1)
end
end

function mob25353_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25353', math.random(1500, 3000), 1)
end

function mob25353_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25353_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25353_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25353, 1, 'mob25353_Action')
RegisterUnitEvent(25353, 2, 'mob25353_Leave')
RegisterUnitEvent(25353, 3, 'mob25353_Kill')
RegisterUnitEvent(25353, 4, 'mob25353_Die')
